花子动漫[漫].js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. var rule = {
  2. title: '花子动漫[漫]',
  3. host: 'https://www.huazidm.com',
  4. class_name: 'TV动漫&剧场&特摄',
  5. class_url: '1&2&3',
  6. searchUrl: '/index.php/ajax/suggest?mid=1&wd=**&limit=50',
  7. searchUrl: '/vodsearch/**----------fypage---.html',
  8. searchable: 2,
  9. quickSearch: 0,
  10. headers: {
  11. 'User-Agent': 'MOBILE_UA',
  12. },
  13. url: '/index.php/api/vod#type=fyclassfyfilter&page=fypage',
  14. filterable: 0,
  15. filter_url: '&class={{fl.class}}&year={{fl.year}}&letter={{fl.letter}}&by={{fl.by}}',
  16. filter: 'H4sIAAAAAAAAA+2W204TURSG32WuMdnT0nbDnZzP57PhopImEhETWk0IIUFOloNQDLSigGJCLCIWhJCWgr4MM9O+hdPO2mstDzE10cSYudv/989u55t0uteUpmuVd6a0+6FJrVIbGQuGw1qZNh58ELKjdZo19lbs/Dg49ihUvG7cxsZCMj+XLGA7aNNlQK9mb9Jxa2sVCsrqCmv7sxGLQg0Bd8fWjI9HaqsTcN/ccW5/Ru1zAnaXKSt6qjonYHf4JXexrDon4PcdPDUyWfV9TlCdGX1hxhPQQSjlPs3YnvVhQ+1zAnaJAyOdVp0T8D7fbdC9QMB9n7LmvHpmELB7s2+8OladE7B7skLPBQI6LD7Pbx8qByfgvrWkFVtU+5yA3c6l/TRU5wTV5V+f3WRi0EFQXS62m1tbgg4C3WfMnInjfRYDdnPL5uxL1TkBu7P9/O5ba+u9qjHjFem0GV03NzPqCsz4HE7Wc6lzuoIyfsbVkbWZZZ+BGd0WlHRhNT1c4M67NBkKTtCrZGTOb7LXJb5KHuEpB1ZcMu4l7uXcQ9zDuU5c51wQF4zrFcjtJeOSuOQ8QDzAuZ+4n3MfcR/n5KtzX518de6rk6/OfXXy1bmvTr469xXkK7ivIF/BfQX5Cu4ryFdwX0G+gvsK8hXcV5Cv4L6CfAX3FeQruK8gX0G+ekWF8i0uGZfEJecB4gHO/cT9nPuI+zgvJ17OuZe4l3MPcQ/nOnGdc0Gc+0ryldxXkq/kvpJ8JfeV5Cu5ryRfyX0l+UruK8lXcl9JvpL7SvKV3FeSr73kfztjoUgkxP94jhNm6lmJfzy3AdxGUgWkCkk1kGokNUBqkNQCqUVSB6QOST2QeiQNQBqQNAJpRNIEpAlJM5BmJC1AWpC0AmlF0gakDUk7kHYkHUA6kHQC6UTSBaQLSTeQbiQ9QHqQ9ALpRdIHpA9JP5B+JANABpAMAhlEMgRkCIm4pd6Bwor/VO5O0s/ETFzkE+c//EzM1SVzZ8aMn8BHREbtq/F0LJb2QAblvdFImJe51LwRVbNEeOThRKjw9cNlmuefGDl/OVb+hdHxvxgPf3cEdAcidyByByK1dAcidyByByJ3IPp+IPL+qYFoOXlzvaOObieUMrb8dMRwj2736HaPbrV0j2736HaPbvfo/vbonv4K+TrlXkAbAAA=',
  17. filter_def: {},
  18. detailUrl: '/voddetail/fyid.html',
  19. play_parse: true,
  20. sniffer: 1,
  21. is_video: 'obj/tos|bd.xhscdn|/ugc/',
  22. lazy: $js.toString(() => {
  23. input = {
  24. parse: 1,
  25. url: input,
  26. //js:'try{let urls=Array.from(document.querySelectorAll("iframe")).filter(x=>x.src.includes("?url="));if(urls){location.href=urls[0].src}}catch{}document.querySelector("button").click()',
  27. js: 'try{location.href=document.querySelector("#playleft iframe").src}catch{}document.querySelector("button.swal-button--confirm").click()',
  28. parse_extra: '&is_pc=1&custom_regex=' + rule.is_video,
  29. }
  30. }),
  31. limit: 6,
  32. 推荐: '.list-vod.flex .public-list-box;a&&title;.lazy&&data-original;.public-list-prb&&Text;a&&href',
  33. 一级: $js.toString(() => {
  34. let body = input.split("#")[1];
  35. let t = Math.round(new Date / 1e3).toString();
  36. let key = md5("DS" + t + "DCC147D11943AF75");
  37. let url = input.split("#")[0];
  38. body = body + "&time=" + t + "&key=" + key;
  39. print(body);
  40. fetch_params.body = body;
  41. let html = post(url, fetch_params);
  42. let data = JSON.parse(html);
  43. VODS = data.list.map(function (it) {
  44. it.vod_pic = urljoin2(input.split("/i")[0], it.vod_pic);
  45. return it
  46. });
  47. }),
  48. 二级: {
  49. title: '.slide-info-title&&Text;.slide-info:eq(3)--strong&&Text',
  50. img: '.detail-pic&&data-original',
  51. desc: '.fraction&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(2)--strong&&Text;.slide-info:eq(1)--strong&&Text',
  52. content: '#height_limit&&Text',
  53. tabs: '.anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a',
  54. tab_text: '.swiper-slide&&Text',
  55. lists: '.anthology-list-box:eq(#id) li',
  56. },
  57. 搜索: 'json:list;name;pic;;id',
  58. 搜索: $js.toString(() => {
  59. let html = fetch(input);
  60. let list = pdfa(html, ".public-list-box");
  61. VODS = list.map(x => {
  62. return {
  63. vod_name: pdfh(x, ".thumb-txt&&Text"),
  64. vod_pic: pdfh(x, ".lazy&&data-src"),
  65. vod_remarks: pdfh(x, ".public-list-prb&&Text"),
  66. vod_content: pdfh(x, ".thumb-blurb&&Text"),
  67. vod_id: pdfh(x, "a&&href")
  68. }
  69. });
  70. }),
  71. 图片替换: '&=>&'
  72. }